package com.qf.direct_exchange;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * author:z
 * time:2021/12/16 19:35
 * description:
 */
@Component
@RabbitListener(queues = "direct_queue2")
public class DirectListener2 {

    //mag:队列中的数据
    @RabbitHandler
    public void onMessage(String msg){
        System.out.println("路由模式=============2"+msg);
    }
}
